// 导出路由规则
import Layout from "@/layout";
export default {
  path: "/portrait",
  name: "portrait",
  component: Layout,
  redirect: "/portrait",
  meta: {
    title: "画像",
  },
  // 配置二级路由
  children: [
    {
      path: "dataOverview",
      name: "dataOverview",
      component: () => import("@/views/portrait/dataOverview"),
      meta: {
        title: "系统数据总览",
        noCache: true,
      },
    },
    {
      path: "jlDataStatistics",
      name: "jlDataStatistics",
      component: () => import("@/views/portrait/jlDataStatistics"),
      meta: {
        title: "简历数据统计",
        noCache: true,
      },
      children: [
        {
          path: "jlAnalysis",
          name: "jlAnalysis",
          component: () =>
            import("@/views/portrait/jlDataStatistics/jlAnalysis"),
          meta: {
            title: "简历总览分析",
          },
        },
        {
          path: "seekingStructure",
          name: "seekingStructure",
          component: () =>
            import("@/views/portrait/jlDataStatistics/seekingStructure"),
          meta: {
            title: "求职者结构",
          },
        },
        {
          path: "jlFlowDirection",
          name: "jlFlowDirection",
          component: () =>
            import("@/views/portrait/jlDataStatistics/jlFlowDirection"),
          meta: {
            title: "简历流向",
          },
        },
        {
          path: "heatAnalysis",
          name: "heatAnalysis",
          component: () =>
            import("@/views/portrait/jlDataStatistics/heatAnalysis"),
          meta: {
            title: "热度分析",
          },
        },
      ],
    },
    {
      path: "qyDataStatistics",
      name: "qyDataStatistics",
      component: () => import("@/views/portrait/qyDataStatistics"),
      meta: {
        title: "企业数据统计",
        noCache: true,
      },
      children: [
        {
          path: "qyDataOverview",
          name: "qyDataOverview",
          component: () =>
            import("@/views/portrait/qyDataStatistics/qyDataOverview"),
          meta: {
            title: "企业总览分析",
          },
        },
        {
          path: "zwDataOverview",
          name: "zwDataOverview",
          component: () =>
            import("@/views/portrait/qyDataStatistics/zwDataOverview"),
          meta: {
            title: "职位总览分析",
          },
        },
        // {
        //   path: "businessAnalysis",
        //   name: "businessAnalysis",
        //   component: () =>
        //     import("@/views/portrait/qyDataStatistics/businessAnalysis"),
        //   meta: {
        //     title: "业务分析",
        //   },
        // },
        {
          path: "heatAnalysis",
          name: "heatAnalysis",
          component: () =>
            import("@/views/portrait/qyDataStatistics/heatAnalysis"),
          meta: {
            title: "热度分析",
          },
        },
      ],
    },
    {
      path: "dataLargeScreen",
      name: "dataLargeScreen",
      component: () => import("@/views/portrait/dataLargeScreen"),
      hidden:true,
      meta: {
        title: "数据大屏",
        noCache: true,
      },
    },
  ],
};
